package com.meal.base.test.DesignMode.singleton;

/**
 * @Title: InnerClassMode
 * @Description: 静态内部类
 * @Author yangzhanghui
 * @Date 2020/5/1010:28
 * @Version v1.0
 */
public class InnerClassMode {

    private InnerClassMode (){}

    private static class SingletonHolder {
        private static final InnerClassMode INSTANCE = new InnerClassMode();

    }

    public static final InnerClassMode getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
